home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / pp / loadsym.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-01  |  1.3 KB  |  74 lines

  1. /*
  2.                                 L O A D S Y M . C
  3.  
  4.     Load platform specific defines.
  5.  
  6.     Modify this file to your taste before compiling icmake: new symbols can be
  7.     added by adding a macro block, as the ones defined below, using the name of
  8.     your symbol. If your modification is useful outside of your local computing
  9.     environment, please e-mail frank@icce.rug.nl or karel@icce.rug.nl, and
  10.     we'll be glad to add your suggestion into the next release of icmake.
  11.  
  12. */
  13.  
  14. #include "icm-pp.h"
  15.  
  16. void loadsym()
  17. {
  18.  
  19. #ifdef MSDOS
  20.     preload("MSDOS", "1");
  21. #else
  22.     preload("MSDOS", "0");
  23. #endif
  24.  
  25. #ifdef UNIX
  26.     preload("UNIX", "1");
  27. #else
  28.     preload("UNIX", "0");
  29. #endif
  30.  
  31. #ifdef unix
  32.     preload("unix", "1");
  33. #else
  34.     preload("unix", "0");
  35. #endif
  36.  
  37. #ifdef LINUX
  38.     preload("LINUX", "1");
  39. #else
  40.     preload("LINUX", "0");
  41. #endif
  42.  
  43. #ifdef linux
  44.     preload("linux", "1");
  45. #else
  46.     preload("linux", "0");
  47. #endif
  48.  
  49. #ifdef M_SYSV
  50.     preload("M_SYSV", "1");
  51. #else
  52.     preload("M_SYSV", "0");
  53. #endif
  54.  
  55. #ifdef M_UNIX
  56.     preload("M_UNIX", "1");
  57. #else
  58.     preload("M_UNIX", "0");
  59. #endif
  60.  
  61. #ifdef _POSIX_SOURCE
  62.     preload("_POSIX_SOURCE", "1");
  63. #else
  64.     preload("_POSIX_SOURCE", "0");
  65. #endif
  66.  
  67. #ifdef __hpux
  68.     preload("__hpux", "1");
  69. #else
  70.     preload("__hpux", "0");
  71. #endif
  72.  
  73. }
  74.